﻿<!--#include file="conn.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="images/style.css" type="text/css" rel="stylesheet">
    <meta content="MSHTML 6.00.3790.0" name="GENERATOR">
</head>
<body style="font-size: 12px; v-text-align: center" leftmargin="0" topmargin="3"
    align="center" marginheight="0" marginwidth="0">
    <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
        <tr>
            <td width="5%" bgcolor="e7e7e7">
                <div align="center">
                    <font color="#000000">ID</font></div>
            </td>
            <td width="15%" bgcolor="e7e7e7">
                <div align="center">
                    <font color="#000000">分类名称</font></div>
            </td>
            <td width="26%" bgcolor="e7e7e7">
                <div align="center">
                    <font color="#000000">文件名称</font></div>
            </td>
            <td width="8%" bgcolor="e7e7e7">
                <div align="center">
                    <font color="#000000">修改</font></div>
            </td>
            <td width="9%" bgcolor="e7e7e7">
                <div align="center">
                    <font color="#000000">删除</font></div>
            </td>
        </tr>
        <%
set rs=server.createobject("adodb.recordset")
sql="select * from class"
rs.open sql,conn,1,1
i=0
do while not rs.eof

        %>
        <tr>
            <td bgcolor="#FFFFFF">
                <div align="center">
                    <%=rs("id")%></div>
            </td>
            <td bgcolor="#FFFFFF">
                <div align="center">
                    <a href="comics_manage.asp?classid=<%=rs("id")%>">
                        <%=rs("classname")%></a></div>
            </td>
            <td bgcolor="#FFFFFF">
                <%=rs("filename")%>
            </td>
            <td bgcolor="#FFFFFF">
                <div align="center">
                    <a href="classadmin.asp?id=<%=rs("id")%>&act=modify">修改</a></div>
            </td>
            <td bgcolor="#FFFFFF">
                <div align="center">
                    <a href="classadmin.asp?id=<%=rs("id")%>&act=del" onclick="{if(confirm('确定删除此分类吗!?')){return true;}return false;}">
                        删除</a></div>
            </td>
        </tr>
        <% i=i+1 
rs.movenext 
loop 
rs.close
set rs=nothing
set conn=nothing%>
    </table>
    <div align="center">
        <p>
            <input name="newclassadmin" type="button" class="Submit" id="newclassadmin" onclick="(location='classadmin.asp?act=new')"
                value="新建一个分类">
        </p>
    </div>
</body>
</html>
